Real-World Software Development by Raoul-Gabriel Urma

Real-World Software Development by Raoul-Gabriel Urma

Author:Raoul-Gabriel Urma
Language: eng
Format: epub, pdf
Publisher: O'Reilly Media
Published: 2018-10-10T16:00:00+00:00


Let’s look at some more examples. This is also a good opportunity to introduce two recent features in Java, which we explore in order:

Local variable type inference

Switch expressions

Local Variable Type Inference

Java 10 introduced variable local type inference. Type inference is the idea that the compiler can figure out the static types for you so you don’t have to type them. You saw an example of type inference earlier in Example 5-10 when you wrote

Map<String, String> facts = new HashMap<>();

instead of



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.